package com.songjiakang.bean;


import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Movie {
	private Integer id         ;
	private String name       ;
	private String author     ;
	private double price      ;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date upTime    ;
	private Type type       ;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date creatTime ;
	private String area       ;
	private String status     ;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public Date getUpTime() {
		return upTime;
	}
	public void setUpTime(Date upTime) {
		this.upTime = upTime;
	}
	public Type getType() {
		return type;
	}
	public void setType(Type type) {
		this.type = type;
	}
	public Date getCreatTime() {
		return creatTime;
	}
	public void setCreatTime(Date creatTime) {
		this.creatTime = creatTime;
	}
	public String getArea() {
		return area;
	}
	public void setArea(String area) {
		this.area = area;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	@Override
	public String toString() {
		return "Movie [id=" + id + ", name=" + name + ", author=" + author
				+ ", price=" + price + ", upTime=" + upTime + ", type=" + type
				+ ", creatTime=" + creatTime + ", area=" + area + ", status="
				+ status + "]";
	}
	public Movie(Integer id, String name, String author, double price,
			Date upTime, Type type, Date creatTime, String area, String status) {
		super();
		this.id = id;
		this.name = name;
		this.author = author;
		this.price = price;
		this.upTime = upTime;
		this.type = type;
		this.creatTime = creatTime;
		this.area = area;
		this.status = status;
	}
	public Movie() {
		super();
		// TODO Auto-generated constructor stub
	}
	

}
